package com.geekca.d5;

public class MethodDemo1 {
    public static void main(String[] args) {
        int result =sum(9,1);
        System.out.println(result);
        printsth();

        System.out.println(sum(19, 21));
    }

    /**
     * javadoc 格式的注释
     * @param a
     * @param b
     * @return
     */
    public static int sum(int a, int b) {
        return a + b;
    }

    public static void printsth(){
        for (int i = 0; i < 5; i++) {
            if(i==8){
                return;
            }
            System.out.println("===========");
        }
    }
}
